import { demoBlockPlugin } from 'vitepress-theme-demoblock';
import { fileURLToPath } from 'url';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import AutoImport from 'unplugin-auto-import/vite';
import Icons from 'unplugin-icons/vite';
import Components from 'unplugin-vue-components/vite';
import IconsResolver from 'unplugin-icons/resolver';
import ElementPlus from 'unplugin-element-plus/vite';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
export default {
  title: 'case',
  description: '(°ー°〃)',
  themeConfig: {
    nav: [
      { text: 'Home', link: '/' },
      { text: '案例', link: '/examples/' },
    ],

    sidebar: [
      {
        text: '案例',
        items: [{ text: '雷达图', link: '/examples/RadarMap/' }],
      },
    ],
    socialLinks: [{ icon: 'github', link: '#' }],
  },
  markdown: {
    config: (md) => {
      // 这里可以使用 markdown-it 插件，vitepress-theme-demoblock就是基于此开发的
      md.use(demoBlockPlugin, {
        cssPreprocessor: 'scss',
      });
    },
  },
};
